import { createApp } from 'vue'
import App from './App.vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import router from './router/router'
import 'normalize.css '
import 'element-plus/theme-chalk/index.css';
import Antd from 'ant-design-vue';
import Moment from"moment"
import Store from"./store/index"
// 引入mitt
import mitt  from 'mitt';
const Mit = mitt()
const app=createApp(App);
declare module 'vue' {
    export interface ComponentCustomProperties {
      $Bus: typeof Mit
    }
  }
 app.config.globalProperties.$Bus = Mit
 app.use(ElementPlus).use(router).use(Antd).use(Store).mount('#app')
app.config.globalProperties.$moment = Moment;